package com.zhitong.money.services.api;

import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.User;

import java.util.List;
import java.util.Map;

public interface IUserService {

    public User findUserByUserName(String userName) throws Exception;

    public User findUserById(String id) throws Exception;

    public User findUserByTid(String tid) throws Exception;

    public List<User> findUserByMap(Map<String,Object> map) throws Exception;

    public List<User> findAllUser() throws Exception;

    public PageInfo findUserByPage(Map<String,Object> map) throws Exception;

    public void addUser(Map<String,Object> map)throws Exception;

    public void updateUser(Map<String,Object> map)throws Exception;

    public void updateLastTime(Map<String,Object> map) throws Exception;

    public void delUser(String id) throws Exception;

    public void delUserByIds(Map<String,Object> map) throws Exception;

    public void delUserByTid(String tid) throws Exception;

    public void delUserByTids(List<String> tids) throws Exception;
}
